<?php if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}

class Abstract_report_model extends CI_Model {
	public function __construct() {
		parent::__construct();
	}

	public function get_status($from,$to){
	 $sql = "SELECT * FROM abstract_report_v WHERE reference BETWEEN ifnull('".$from."','".$to."') AND ifnull('".$to."','".$from."') ";

	 $query = $this->db->query($sql);
	 return $query->result();

	}


}